﻿using QuanLyThongTinCoSo.BaseForm;
using QuanLyThongTinCoSo.Common;
using System;
using QuanLyThongTinCoSo.Forms.NhomPhuongTien;

namespace QuanLyThongTinCoSo.Forms.PhuongTien
{
    public partial class frmPhuongTienDetail : frmDetail
    {
        public frmPhuongTienDetail()
        {
            InitializeComponent();
        }

        public frmPhuongTienDetail(string typeForm, string formName)
        {
            InitializeComponent();
            if (String.Compare(typeForm, Constant.TypeForm.New, StringComparison.OrdinalIgnoreCase) == 0)
            {
                Text = formName;
            }
        }

        private void btnAddLoaiPhuongTien_Click(object sender, EventArgs e)
        {
            var frm = new frmNhomPhuongTienCoSoDetail();
            frm.Show();
        }
    }
}